/**
 * Shopware 4.0
 * Copyright © 2012 shopware AG
 *
 * According to our dual licensing model, this program can be used either
 * under the terms of the GNU Affero General Public License, version 3,
 * or under a proprietary license.
 *
 * The texts of the GNU Affero General Public License with an additional
 * permission and of our proprietary license can be found at and
 * in the LICENSE file you have received along with this program.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * "Shopware" is a registered trademark of shopware AG.
 * The licensing of the program under the AGPLv3 does not imply a
 * trademark license. Therefore any rights, title and interest in
 * our trademarks remain entirely with us.
 *
 * @category   Shopware
 * @package    Shopware_Styling
 * @subpackage Window
 * @copyright  Copyright (c) 2012, shopware AG (http://www.shopware.de)
 * @version    $Id$
 * @author shopware AG
 */
 // Deprecated modules window
.#{$prefix}window-deprecated {
    border-color: #fc6220 !important;
    position: absolute !important;

	.#{$prefix}window-header {
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        -ms-box-shadow: none;
        box-shadow: none;
        background: theme-image($theme, 'window_bg_old.png') repeat-x !important;
        border-bottom-color: #fc6220 !important;
	}

    .#{$prefix}window-header-text {
        color: #fff;
        text-shadow: 1px 1px 0 #fc6220 !important;
    }
}
 
.#{$prefix}window {
    padding: 0;
    position: absolute !important;
	background: #f7f7f7;

    /** Header */
    .#{$prefix}window-header {
    	@include reset-box-shadow;
        background: url("") repeat-x;
        border-bottom: 1px solid $border-color !important;

        /** Header title */
        .#{$prefix}window-header-text {
            text-shadow: 0 1px 0 #fdfdfd;
        }
    }

    /** Header top styling */
    .#{$prefix}window-header-top {
        padding: 0;
        
        .#{$prefix}window-header-body {
        	@include border-radius(5px 5px 0 0);
        	padding: $window-header-padding;
    		border: 1px solid #eaedef;
    		border-top: 1px solid #f5f7f8;
    		border-bottom: 0;
        }
    }
    
    /** Body styling */
    .#{$prefix}window-body {
    	@include border-radius(0 0 4px 4px);
    	border: 1px solid #eff2f5 !important;
    	border-top-width: 2px !important;
    	background: #f9fafa;
    	
    	/** Get rid of the nasty body borders */
    	.#{$prefix}window-item > .#{$prefix}tab-bar {
    		border-color: transparent !important;
	    	
	    	& > .#{$prefix}tab-bar-body {
		    	border-color: transparent !important;
	    	}
	    	
	    	& + .#{$prefix}panel-body {
		    	border-color: transparent !important;
	    	}
    	}
    }
}
.#{$prefix}window + .#{$prefix}mask {
    top: -40px !important;
    height: 200% !important;
}

// Default shadow
.#{$prefix}css-shadow {
    -webkit-box-shadow: 0 0 0 transparent !important;
    -moz-box-shadow: 0 0 0 transparent !important;
    -ms-box-shadow: 0 0 0 transparent !important;
    box-shadow: 0 0 0 transparent !important;

	margin: 4px 0 0 4px;
	border: 4px solid rgba(0, 0, 0, .08);
	border-top: 0 none;
	border-left: 0 none;

}

// Ghosting modus
.#{$prefix}panel-ghost, .#{$prefix}window-ghost {
	@include opacity(1);
}

// Basic tools
.#{$prefix}tool img {
	background-image: theme-image($theme, 'tool-sprites.png');
}